﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Ashlen.Portal.Controllers;
using MvcContrib.TestHelper;
using System.Web.Mvc;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using Rhino.Mocks;
using System.Linq;
using Ashlen.Portal.Core;
using Ashlen.Portal.Core.DataInterfaces;
using Ashlen.Portal.Data.SqlServer;

namespace Ashlen.Portal.Tests.Ashlen.Portal.DataTests
{
    [TestFixture]
    public class NewsDaoTests
    {
        private INewsDao _dao;
        
        [SetUp]
        public void Setup() {
            _dao = new NewsDao();
        }

        [Test]
        public void CanSearch() {
            int totalRecords;
            DateTime startDate = new DateTime(2008, 10, 12);
            DateTime endDate = new DateTime(2008, 10, 15);

            object o = _dao.SearchNewsFeeds(null, 1, 10, null, 1, startDate, endDate, NewsSortBy.dateUpdated, out totalRecords);
        }
    }
}
